{{#teams}}
<table class='match_form'>
    <tr><td class='seperator' colspan='13'></td></tr>
    <tr><td colspan='13' class='dark'>
        <b><a href="index.php?section=coachcorner&amp;team_id={{team_id}}">{{name}}</a> {{lang_report}}</b>
    </td></tr>
    <tr>
    	<td class='seperator' colspan='13'></td>
    </tr>
    <tr>
        <td><i>Nr</i></td>
        <td><i>Name</i></td>
        <td><i>Position</i></td>
        <td><i>MVP</i></td>
        <td><i>Cp</i></td>
        <td><i>TD</i></td>
        <td><i>Int</i></td>
        <td><i>BH</i></td>
        <td><i>SI</i></td>
        <td><i>Ki</i></td>
        <td><i>Inj</i></td>
        <td><i>Ageing</i></td>
        <td><i>Ageing</i></td>
    </tr>
    {{#players}}
    <tr{{#backgroundColor}} style="background-color:{{backgroundColor}}"{{/backgroundColor}}>
    	<td>{{nr}}</td>
    	<td>{{name}}</td>
    	<td>{{position}}{{{status}}}</td>
    	<td><input type='checkbox' {{mvp_checked}} {{DIS}} name='mvp_{{player_id}}'></td>
    	<td><input {{DIS}} type='text' onChange='numError(this);' size='1' maxlength='2' name='cp_{{player_id}}' value="{{cp_value}}"></td>
    	<td><input {{DIS}} type='text' onChange='numError(this);' size='1' maxlength='2' name='td_{{player_id}}' value="{{td_value}}"></td>
    	<td><input {{DIS}} type='text' onChange='numError(this);' size='1' maxlength='2' name='intcpt_{{player_id}}' value="{{intcpt_value}}"></td>
    	<td><input {{DIS}} type='text' onChange='numError(this);' size='1' maxlength='2' name='bh_{{player_id}}' value="{{bh_value}}"></td>
    	<td><input {{DIS}} type='text' onChange='numError(this);' size='1' maxlength='2' name='si_{{player_id}}' value="{{si_value}}"></td>
    	<td><input {{DIS}} type='text' onChange='numError(this);' size='1' maxlength='2' name='ki_{{player_id}}' value="{{ki_value}}"></td>
    	<td>
    		<select name="inj_{{player_id}}"{{DIS}}>
    			<option value="{{NONE}}"{{#inj_none_selected}} selected="selected"{{/inj_none_selected}}>None</option>
    			<option value="{{MNG}}"{{#inj_mng_selected}} selected="selected"{{/inj_mng_selected}}>MNG</option>
    			<option value="{{NI}}"{{#inj_ni_selected}} selected="selected"{{/inj_ni_selected}}>Ni</option>
    			<option value="{{MA}}"{{#inj_ma_selected}} selected="selected"{{/inj_ma_selected}}>Ma</option>
    			<option value="{{AV}}"{{#inj_av_selected}} selected="selected"{{/inj_av_selected}}>Av</option>
    			<option value="{{AG}}"{{#inj_ag_selected}} selected="selected"{{/inj_ag_selected}}>Ag</option>
    			<option value="{{ST}}"{{#inj_st_selected}} selected="selected"{{/inj_st_selected}}>St</option>
    			<option value="{{DEAD}}"{{#inj_dead_selected}} selected="selected"{{/inj_dead_selected}}>DEAD</option>
    		</select>
    	</td>
    	{{#aging}}
    	<td>
    		<select name="{{id}}_{{player_id}}"{{DIS}}>
    			<option value="{{NONE}}"{{#none_selected}} selected="selected"{{/none_selected}}>None</option>
    			<option value="{{NI}}"{{#ni_selected}} selected="selected"{{/ni_selected}}>Ni</option>
    			<option value="{{MA}}"{{#ma_selected}} selected="selected"{{/ma_selected}}>Ma</option>
    			<option value="{{AV}}"{{#av_selected}} selected="selected"{{/av_selected}}>Av</option>
    			<option value="{{AG}}"{{#ag_selected}} selected="selected"{{/ag_selected}}>Ag</option>
    			<option value="{{ST}}"{{#st_selected}} selected="selected"{{/st_selected}}>St</option>
    		</select>
    	</td>
    	{{/aging}}
    </tr>
    {{/players}}

{{#mercsEnabled}}
<table style='border-spacing: 10px;'>
    <tr>
        <td align="left" valign="top">
            <b>Star Players</b>: 
            <input type='button' id="addStarsBtn_{{teamnumber}}" value="{{lang_add}}" 
            onClick="stars = document.getElementById('stars_{{teamnumber}}');addStarMerc({{teamnumber}}, stars.options[stars.selectedIndex].value);" {{DIS}}>
            <select id="stars_{{teamnumber}}" {{DIS}}>
            	{{#mercs}}
            	<option{{#color}} style="background-color:{{color}};"{{/color}} value='{{id}}'>{{name}}</option>
            	{{/mercs}}
            </select>
        </td>
    </tr>
    <tr>
        <td align="left" valign="top">
            <b>Mercenaries</b>: <input type='button' id="addMercsBtn_{{teamnumber}}" value="{{lang_add}}" onclick="addStarMerc({{teamnumber}}, {{ID_MERCS}});" {{DIS}}>
        </td>
    </tr>
</table>

<table class="match_form" id="starsmercs_{{teamnumber}}">
</table>
{{/mercsEnabled}}
{{/teams}}

<table class="match_form">
	<tr>
		<td class="seperator" colspan="13"></td>
	</tr>
	<tr>
		<td colspan="13" class="dark"><b>{{lang_summary}}</b></td>
	</tr>
	<tr>
		<td colspan='13'>
			<textarea name="summary" rows="10" cols="100" {{DIS}}>{{comment}}</textarea>
		</td>
	</tr>
	<tr>
		<td class="seperator" colspan="13"></td>
	</tr>
	<tr>
		<td colspan="13" class="dark">
			<b>{{lang_photos}}</b>
		</td>
	</tr>
	{{#pics}}
	<tr>
		<td>
		{{!not yet tested}}
			<a href="handler.php?type=mg&amp;mid={{match_id}}&amp;pic={{pic_id}}"><img alt="match photo" src="{{pic}}" width="220"></a>
		</td>
	</tr>
	{{/pics}}
	<tr>
		<td class='seperator' colspan='13'></td>
	</tr>
	<tr>
		<td class='seperator' colspan='13'>{{{lang_pnote}}}</td>
	</tr>
	{{#uploadphotos}}
	<tr>
		<td>{{lang_photo}} #{{id}}: <input {{DIS}} type='file' name='img{{id}}'>{{#image}}&nbsp;&nbsp;<font color="orange"><b>{{lang_occ}}</b></font>{{/image}}</td>
	</tr>
	{{/uploadphotos}}
</table>
<br>
<center>
	<input type="submit" name='button' value="{{lang_save}}" {{DIS}}>
</center>
</form>
<br>
<br>
